package com.su.kddq.controller.user;

import com.su.kddq.service.user.SlideService;
import com.su.kddq.utils.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * banner controller
 * @author sx
 */
@RestController
@RequestMapping("/hddq/express/h5/user/slideshow/")
public class SlideController {

    @Autowired
    private SlideService slideService;

    /**
     * 首页banner
     * @return
     */
    @GetMapping("list")
    public R list(){
        return R.ok().data("slidelist",slideService.list());
    }


}
